import { IsInt, IsString } from "class-validator";

export class UserDto{
    @IsString({message:'用户名必须是字符串'})
    username:string;
    @IsInt({message:'年龄必须是数字'})
    age:number;
    @IsString({message:'性别必须是字符串'})
    gender:string;
}